/**
 * author: XGP
 * date: 2018/07/25
 * des: 人员招聘-招聘规划
 *
 */
export const editSetting = [{
  field: 'planName',
  title: '申请名称',
  type: 'text',
  searchable: true
},
{
  field: 'orgId',
  title: '发起部门',
  type: 'org',
  changeOnSelect: true,
  disableEdit: true,
  itemChange: (form, item) => {
    this.planData = []
    this.editPlanData = []
  }
},

{
  field: 'startDate',
  title: '开始日期',
  type: 'date'
},

{
  field: 'endDate',
  title: '结束日期',
  type: 'date'
},
{
  field: 'docList',
  title: '附件',
  type: 'file',
  busiKey: 'planId'
},
{
  field: 'statusName',
  title: '状态',
  type: 'text',
  disableEdit: true,
  hideEdit: true,
  hideDetail: true

}, {
  field: 'detailList',
  title: '规划招聘人数',
  type: 'table',
  onlyRow: true,
  slot: 'table'
}
]
export const searchSetting = [
  {
    field: 'planName',
    title: '申请名称',
    type: 'text',
    searchable: true
  },
  {
    field: 'planId',
    title: '申请编号',
    type: 'text',
    searchable: true
  },
  {
    field: 'orgId',
    title: '发起部门',
    type: 'org',
    searchable: true
  }
]
export const addSetting = [{
  field: 'planName',
  title: '申请名称',
  type: 'text'
},
{
  field: 'orgId',
  title: '发起部门',
  type: 'org',
  searchable: true,
  changeOnSelect: true,
  itemChange: (form, item) => {
    this.planData = []
    this.editPlanData = []
  }
},
{
  field: 'startDate',
  title: '开始日期',
  type: 'date'
},
{
  field: 'endDate',
  title: '结束日期',
  type: 'date'
},
{
  field: 'docList',
  title: '附件',
  type: 'file',
  busiKey: 'planId'
},
{
  field: 'detailList',
  title: '规划招聘人数',
  type: 'table',
  onlyRow: true,
  slot: 'table'
}
]
export const setting = [{
  field: 'planId',
  title: '申请编号',
  type: 'text'

},
{
  field: 'planName',
  title: '申请名称',
  type: 'text'
},
{
  field: 'orgName',
  title: '发起部门',
  type: 'text',
  changeOnSelect: true
},
{
  field: 'recruitsNumbers',
  title: '申请招聘人数',
  type: 'text'
},
{
  field: 'insertUser',
  title: '申请人',
  type: 'text'
},
{
  field: 'statusName',
  title: '状态',
  type: 'text'
}
]

